package com.yonyou.crm.sys.dynamic.filter;

import com.yonyou.crm.sys.dynamic.builder.Field;
import com.yonyou.crm.sys.dynamic.builder.Link;
import com.yonyou.crm.sys.dynamic.entity.DynamicVO;

public class MyFilter {
	
	private Long userId;
	private String title;
	private BusiFilter busiFilter;
	
	
	public MyFilter(Long userId, String title) {
		super();
		this.userId = userId;
		this.title = title;
		Field fromField = new Field("",new Link("","USER",userId,"",""));
		Field toField = new Field("",new Link(title,"USER",userId,"",""));
		this.busiFilter = new BusiFilter(fromField,toField);
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public void doFilter(DynamicVO dym) {
		busiFilter.doFilter(dym);
	}
}
